<li class="dropdown language">
    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
        <img alt="" src="<?=static_url('img/flags/' . $lang . '.png')?>"/>
        <span class="username">
             <?=array_get($langs, $lang)?>
        </span>
        <i class="fa fa-angle-down"></i>
    </a>
    <ul class="dropdown-menu">
        <? if ($lang !== 'en-us'): ?>
            <li>
                <a href="<?=url_param(null, array('lang' => 'en-us'))?>">
                    <img alt="" src="<?=static_url('img/flags/en-us.png')?>"/> English
                </a>
            </li>
        <? endif; ?>
        <? if ($lang !== 'zh-cn'): ?>
            <li>
                <a href="<?=url_param(null, array('lang' => 'zh-cn'))?>">
                    <img alt="" src="<?=static_url('img/flags/zh-cn.png')?>"/> 简体中文
                </a>
            </li>
        <? endif; ?>
    </ul>
</li>
